package com.dsg.service.apply;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.apply.DsgApplyPay;
import com.dsg.entity.apply.DsgApplyStatus;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @program: erp
 * @description: 扣1元
 * @author: 賴利榮
 * @create: 2020-10-09 19:30
 */
public interface IDeductOneYuanService extends IService<DsgApplyPay>, IDsglService<DsgApplyPay> {

    /**
     * 扣1元列表查詢（分頁）
     *
     * @param page
     * @param dsgApplyPay
     * @return
     */
    Page<DsgApplyPay> selectDeductOneYuanList(Page<DsgApplyPay> page, DsgApplyPay dsgApplyPay);

    /**
     * 扣1元列表查詢
     *
     * @param dsgApplyPay
     * @return
     */
    List<DsgApplyPay> selectDeductOneYuanList(DsgApplyPay dsgApplyPay);

    /**
     * 批量修改是否扣$1元状态
     *
     * @param idList
     * @param isDedu
     */
    void updateDEDUStatus(String idList, Integer isDedu);


    /**
     * 導出扣一元
     *
     * @param response
     */
    void download(HttpServletResponse response) throws Exception;


    /**
     * 查詢業務申請單狀態集合
     *
     * @param entCode
     * @param list
     * @return
     */
    List<DsgApplyStatus> selectDsgApplyStatus(String entCode, List<String> list);
}
